/'--------------------------------------------------------
    Holt                  http://coderesearchlabs.com/holt
    by Javier Santo Domingo (j-a-s-d@coderesearchlabs.com)
  --------------------------------------------------------
    FreeBASIC emitter demo
  --------------------------------------------------------'/

#include once "he_fb_demo.bi"

const HE_NAME = "fb_demo"
const HE_OK = "0"

function getName cdecl () as zstring ptr export
  function = strptr(HE_NAME)
end function

function getLevelKinds cdecl (byval _level as unsigned long) as zstring ptr export
  function = strptr("")
end function

function setDestination cdecl (byval _destination as zstring ptr) as zstring ptr export
  function = strptr(HE_OK)
end function

function beginEmission cdecl () as zstring ptr export
  function = strptr(HE_OK)
end function

function endEmission cdecl () as zstring ptr export
  function = strptr(HE_OK)
end function

function emitNode cdecl ( _
	byval _level as unsigned long, byval _position as unsigned long, byval _childCount as unsigned long, _
	byval _path as zstring ptr, byval _kind as zstring ptr, _
	byval _name as zstring ptr, byval _value as zstring ptr) as zstring ptr export
  function = strptr(HE_OK)
end function
